<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="../js/vue.js"></script>
<h3>
    ---数据响应式 <br>
      ---数据变,视图跟着变,实时更新</h3>
<hr>
  <div id="app">
    <h1>名字 : {{name}}</h1>
    <h1>年龄 : {{age}}</h1>
    <h1>爱好 : {{hobby.say}}</h1>
  </div>
  <script>
   const vm = new Vue({
      el:'#app',
      data:{
        name : '帅帅',
        age:'21',
        hobby:{
          say:'gg'
        }
      }
    })
  </script>
</body>
</html>